home *** CD-ROM | disk | FTP | other *** search
/ Champak 146 / (Vol 146) Jan 07 2012.iso / Games / star_catcher.swf / scripts / DefineSprite_122 / frame_62 / DoAction.as
Encoding:
Text File  |  2012-01-07  |  1.4 KB  |  32 lines

  1. if(Number(this._y) + Number(_root.DOWN_SPEED) < _root.VERT_FLOOR)
  2. {
  3.    setProperty(this, _Y, Number(this._y) + Number(_root.DOWN_SPEED));
  4.    setProperty("_root.catchPointTop", _Y, Number(_root.catchPointTop._y) + Number(_root.DOWN_SPEED));
  5.    setProperty("_root.catchPointBottom", _Y, Number(_root.catchPointBottom._y) + Number(_root.DOWN_SPEED));
  6.    setProperty("_root.interface.burst" + _root.gCurrentChannel, _Y, Number(eval("_root.interface.burst" + _root.gCurrentChannel + "._y")) + Number(_root.DOWN_SPEED));
  7.    play();
  8. }
  9. else
  10. {
  11.    _root["interface"].upArrowBtnClip.gotoAndStop("active");
  12.    if(_root.gCurrentChannel == _root.TOTAL_CHANNELS)
  13.    {
  14.       _root["interface"].leftArrowBtnClip.arrow_btn.enabled = true;
  15.    }
  16.    else if(_root.gCurrentChannel == 1)
  17.    {
  18.       _root["interface"].rightArrowBtnClip.arrow_btn.enabled = true;
  19.    }
  20.    else
  21.    {
  22.       _root["interface"].leftArrowBtnClip.arrow_btn.enabled = true;
  23.       _root["interface"].rightArrowBtnClip.arrow_btn.enabled = true;
  24.    }
  25.    setProperty("_root.catchPointTop", _Y, _root.catchPointTop.vOrigY);
  26.    setProperty("_root.catchPointBottom", _Y, _root.catchPointBottom.vOrigY);
  27.    setProperty("_root.interface.burst" + _root.gCurrentChannel, _Y, eval("_root.interface.burst" + _root.gCurrentChannel + ".vOrigY"));
  28.    setProperty(this, _Y, _root.VERT_FLOOR);
  29.    _root.gOlieState = "still_right";
  30.    gotoAndStop(36);
  31. }
  32.